<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>投票结果</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('outcome')}">
        部门:
        <select class="form-control" name="department_id" style="width: 140px;">
            <option value='0'>全部</option>
            <volist name="departments" id="vo">
                <option value='{$key}' <eq name="key" value="$department_id">selected</eq> >{$vo}</option>
            </volist>
        </select> &nbsp;&nbsp;
        时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
               value="{$end_time|default=''}"
               style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="{$keyword|default=''}" placeholder="菜品、作者、投票人、电话">
        菜谱日期:
        <input type="text" class="form-control js-bootstrap-date" name="eat_date"
               value="{$eat_date|default=''}"
               style="width: 140px;" autocomplete="off">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('outcome')}">清空</a>
    </form>
    <table class="table table-hover table-bordered margin-top-20">
        <thead>
        <tr>
            <th>菜品</th>
            <th>厨师</th>
            <th>菜谱日期</th>
            <th>票数</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.name}</td>
                <td>{$vo.author}</td>
                <td>{$vo.eat_date}</td>
                <td>{$vo.vote_num}</td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <ul class="pagination">{$page|default=''}</ul>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>